package com.lsk.controller;

import com.lsk.internalcommon.DTO.DriverUser;
import com.lsk.internalcommon.DTO.ResponseResult;
import com.lsk.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class UserController {
    @Autowired
    private UserService userService;

    @PutMapping("/driver-user")
    public ResponseResult updateUser(@RequestBody DriverUser user){
        log.info("api-driver调用service-Driver_user服务updateDriverUser功能");
        return userService.updateUser(user);
    }

}
